#[macro_export]
macro_rules! add_relate {
    {$from:ty => $to:ty | $by:path} => {
        impl sea_orm::Related<$from> for $to{
            fn to() -> RelationDef {
                sea_orm::RelationTrait::def(&($by))
            }
        }
    };
    {$($from:ty => $to:ty | $by:path),*} =>{
        $(
            $crate::add_relate!{$from => $to | $by}
        )*
    }
}
